﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RWLibrary.Logic.BooleanExpression
{
    public class Fluent : UnaryExpression
    {
        public Fluent(string name)
        {
            Name = name;
        }

        public string Name { get; protected set; }

        public override bool Test(State s)
        {
            return s[Name];
        }

        public override string ToString()
        {
            return Name;
        }
    }
}
